/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gui.observer;

import gui.MainWindow;
import java.net.Socket;
import java.util.Observable;
import java.util.Observer;

/**
 *
 * @author Paweł Kopiczko
 */
public class ServerObserver implements Observer {
    private MainWindow mainWindow;

    public ServerObserver(MainWindow mainWindow) {
        this.mainWindow = mainWindow;
    }

    public void update(Observable o, Object arg) {
        mainWindow.createConversation((Socket) arg);
    }

}
